package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 老师对象 teacher
 * 
 * @author ruoyi
 * @date 2024-06-03
 */
public class Teacher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 老师姓名 */
    @Excel(name = "老师姓名")
    private String teacherName;

    /** 工号 */
    @Excel(name = "工号")
    private String teacherNum;

    /** 家庭住址 */
    @Excel(name = "家庭住址")
    private String address;

    /** 年龄 */
    @Excel(name = "年龄")
    private Integer teacherAge;

    /** 性别（0男 1女 2未知） */
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String teacherSex;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date teacherBirthday;

    private String teacherKey;

    private String teacherValue;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTeacherName(String teacherName) 
    {
        this.teacherName = teacherName;
    }

    public String getTeacherName() 
    {
        return teacherName;
    }

    public void setTeacherNum(String teacherNum) 
    {
        this.teacherNum = teacherNum;
    }

    public String getTeacherNum() 
    {
        return teacherNum;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setTeacherAge(Integer teacherAge) 
    {
        this.teacherAge = teacherAge;
    }

    public Integer getTeacherAge() 
    {
        return teacherAge;
    }

    public void setTeacherSex(String teacherSex) 
    {
        this.teacherSex = teacherSex;
    }

    public String getTeacherSex() 
    {
        return teacherSex;
    }

    public void setTeacherBirthday(Date teacherBirthday) 
    {
        this.teacherBirthday = teacherBirthday;
    }

    public Date getTeacherBirthday() 
    {
        return teacherBirthday;
    }

    public String getTeacherKey()
    {
        return teacherKey;
    }

    public String getTeacherValue()
    {
        return teacherValue;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherName", getTeacherName())
            .append("teacherNum", getTeacherNum())
            .append("address", getAddress())
            .append("teacherAge", getTeacherAge())
            .append("teacherSex", getTeacherSex())
            .append("teacherBirthday", getTeacherBirthday())
            .append("remark", getRemark())
            .toString();
    }
}
